<?php
/**
 * 主模块
 * PHP >= 5.3
 * @author 星期八 <ixqbar@gmail.com>
 * @editor $Author: ixqbar $
 * @date $Date: 2011-05-07 13:24:30 +0000 (Sat, 07 May 2011) $
 * @version $Revision: 3 $
 */
error_reporting(E_ALL|E_STRICT);
define('CX', TRUE);
define('APPLICATION_HTDOC_PATH', __DIR__);
define('APPLICATION_PATH', __DIR__ . '/..');
define('APPLICATION_CONTROLLER_PATH', __DIR__ . '/controller');
define('APPLICATION_MODULE_PATH', __DIR__ . '/module');
define('APPLICATION_TEMPLATE_PATH', __DIR__ . '/template');
define('APPLICATION_TEMP_PATH', __DIR__ . '/temp');

include_once APPLICATION_PATH . '/library/route.class.php';

$route_handle = CXRoute::instance();
$route_handle->dispatch();
?>
